package com.TestDemo.Test202203To04;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2022/03/25/11:13
 * @Description:
 * @Target:
 */
public class LetterSwapTest {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String s = in.readLine();

        System.out.println(swapProcessBigToSmall(s));
    }



    static String swapProcessBigToSmall(String ss){
        StringBuffer stringBuffer = new StringBuffer();

        for (int i = 0; i < ss.length(); i++) {
            if (ss.charAt(i)>='A'&&ss.charAt(i)<='Z'){
                stringBuffer.append(ss.charAt(i));
            }else if (ss.charAt(i)>='a'&&ss.charAt(i)<='z'){
                stringBuffer.append((char) (ss.charAt(i)-32));
            }else {
                stringBuffer.append(ss.charAt(i));
            }
        }

        return stringBuffer.toString();



    }




    static String swapProcessSmallToBig(String ss){
        StringBuffer stringBuffer = new StringBuffer();

        for (int i = 0; i < ss.length(); i++) {
            if (ss.charAt(i)>='a'&&ss.charAt(i)<='z'){
                stringBuffer.append(ss.charAt(i));
            }else if (ss.charAt(i)>='A'&&ss.charAt(i)<='Z'){
                stringBuffer.append((char) (ss.charAt(i)+32));
            }else {
                stringBuffer.append(ss.charAt(i));
            }
        }

        return stringBuffer.toString();



    }
}
